<?
ini_set("SMTP",  "mbox.freehostia.com");
ini_set("sendmail_from", "info@institutoescoffier.com");
ini_set("smtp_port", "2525");

$nombre = $_POST["nombre"];
$email = $_POST["email"];
$descripcion = $_POST["descripcion"];


$from = "From: ".$email; 
$to = "info@institutoescoffier.com"; 
$subject = "[Contacto] ".$nombre; 
$body = $nombre."\n".$descripcion; 
 
if (mail ($to, $subject, $body, $from)) { 
	echo "Mail sended from ".$nombre." ".$email; 
	header( 'Location: confimacion.php' ) ;
} else { 
	echo "MAIL FAILED";
} 
?>